<?php
/** @var Page|Template $this */
/** @var $data */

use Action\Common\Template;
use Model\Page;

/** @var Template self */
/** @var $_get_template_info */
if($_get_template_info)
return [
    'name' => '简单页面',
    'key' => $this->fns->filename(__FILE__),
    'desc' => '',
    'fields' => [
        'content' => [
            'label' => '页面内容',
            'type' => Page::PT_RICHTEXT,
            'style' => 'height:400px'
        ],
    ]
];

?>
<html>
    <head>
        <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
        <title><?php echo $data['title'] ?></title>
        <style>
            html,body {
                margin: 0;
                padding: 0;
            }
            
            .simple-page {

            }

            .simple-page img {
                width: 100%;
            }
        </style>

        <?php echo $data['head_html'] ?>
    </head>

    <body>
<!--        <xmp>--><?php //print_r($data) ?><!--</xmp>-->
        <div class="simple-page">
            <?php echo $data['fields']['content'] ?>
        </div>
        <?php echo $data['bottom_html'] ?>
    </body>
</html>
